package com.hujiang.basic.search.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class HJUpdateByQueryResponse extends HJEsResponse {

    private static final long serialVersionUID = 1L;

    private long tookMillis;//目前只返回毫秒

    private long updated;

    private int batches;

    private long versionConflicts;

    private long noops;

    private boolean isTimedOut;

    @Override
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        else if (null!=obj && this.getClass() != obj.getClass()) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        return this.hashCode();
    }
}
